package com.zhanghang.vending_machine.mapper;

import com.zhanghang.vending_machine.domain.po.ShoppingCart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author ASUS
* @description 针对表【shopping_cart】的数据库操作Mapper
* @createDate 2024-11-06 14:06:29
* @Entity com.zhanghang.vending_machine.domain.po.ShoppingCart
*/
@Mapper
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {

    /**
     * 查询所有id
     * @return
     */
    @Select("select id from shopping_cart")
    List<Long> getIds();
}




